package com.openvas.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.openvas.commons.common.annotation.Excel;
import com.openvas.commons.common.core.domain.BaseEntity;

/**
 * 过滤器对象 table_filter
 * 
 * @author ruoyi
 * @date 2021-11-04
 */
public class TableFilter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String filterId;

    /** 过滤器名称 */
    @Excel(name = "过滤器名称")
    private String name;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;

    /** 过滤术语，根据什么过滤 */
    @Excel(name = "过滤术语，根据什么过滤")
    private String term;

    /** 过滤器所属的类型 */
    @Excel(name = "过滤器所属的类型")
    private String type;

    /** 所属用户 */
    @Excel(name = "所属用户")
    private String userName;

    public void setFilterId(String filterId) 
    {
        this.filterId = filterId;
    }

    public String getFilterId() 
    {
        return filterId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setTerm(String term) 
    {
        this.term = term;
    }

    public String getTerm() 
    {
        return term;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("filterId", getFilterId())
            .append("name", getName())
            .append("comment", getComment())
            .append("term", getTerm())
            .append("type", getType())
            .append("userName", getUserName())
            .toString();
    }
}
